import request from '@/utils/request'

// 查询缓存详细
export function getClientSystemFilePage(data) {
    return request({
        url: '/tClientSystemFile/page',
        method: 'post',
        data: data,
    })
}
export function getClientSystemFileList(data) {
    return request({
        url: '/tClientSystemFile/list',
        method: 'post',
        data: data,
    })
}

export function addClientSystemFile(data) {
    return request({
        url: '/tClientSystemFile/add',
        method: 'post',
        data: data,
    })
}

export function updateClientSystemFile(data) {
    return request({
        url: '/tClientSystemFile/update/' + data.id,
        method: 'post',
        data: data,
    })
}
export function deleteClientSystemFile(id) {
    return request({
        url: '/tClientSystemFile/delete/' + id,
        method: 'post',
    })
}


export function upgradeClientSystemFile(id, data) {
    return request({
        url: '/tClientSystemFile/upgrade/' + id + "?devicetopic=" + data.devicetopic,
        method: 'post',
        data: data
    })
}
